package com.neusoft.bootjdbc.controller;

import com.neusoft.bootjdbc.domain.User;
import com.neusoft.bootjdbc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    private UserService service;

    @GetMapping("/getUser.do")
    public List<User> query()
    {
        return service.queryALL();
    }
}
